package com.suyuan.service;

import com.github.pagehelper.PageInfo;
import com.suyuan.entity.CompanyInfo;
import com.suyuan.entity.DepartmentInfo;
import com.suyuan.entity.EmployeeInfo;
import com.suyuan.entity.Permission;
import com.suyuan.web.Page;

import java.util.List;

/**
 * Created by yang on 2018/2/18.
 */
public interface EmployeeService {

    PageInfo list(Integer employeeId, Integer compId, Integer depId, Page page);

    int save(EmployeeInfo employee);

    int delete(Integer id);

    EmployeeInfo findById(Integer id);

    EmployeeInfo findByName(String username);

    List<CompanyInfo> getCompanys();

    List<DepartmentInfo> getDepts();

    int update(EmployeeInfo employee);

    //根据账号查找员工信息
    EmployeeInfo getByUsername(String username);

    //根据员工账号查找其权限
    List<Permission> getPermissions(String username);

    //注销
    void logout();

    /////商城后台系统管理
    EmployeeInfo checkEmployeeInfo(EmployeeInfo employeeInfo);
}
